import type { Router } from "vue-router";

const addApps = (router:Router) => {
};
const generatorRouter = (router: Router) => {
  addApps(router)
};
export default {
  use: (router:Router) => {
    generatorRouter(router);
    router.beforeEach((to) => {
      // NProgress.start();
      if (to.meta?.title){
        document.title = `${to.meta.title}`;
      }

    })
    router.afterEach((to) => {
      // NProgress.done();

    })
  }
}